-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] Substitute SyncBN with BN for mmpose #1631
[Fix] Substitute SyncBN with BN for mmpose #1631
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ci failed, could fix it before merge?
Why cannot reuse BaseTask's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls check this change with regression test
Merge branch 'temp' into fix_syncbn_for_mmpose_dev-1.x
* fix syncbn for mmpose * unify build_pytorch_model
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
All other codebases can substitute SyncBN with BN in
build_pytorch_model
function from theBaseTask
class, while mmpose overwrites thebuild_pytorch_model
function without substitute SyncBN with BN. It will failed on RTMPose deployment.Modification
Call the mmengine API
revert_sync_batchnorm
in mmposebuild_pytorch_model
function.BC-breaking (Optional)
None.
Use cases (Optional)
RTMPose deployment.
Checklist